
package org.bridgen.lang.semantics.ast;
import java.util.*;


public class ExtendRecoverDecl extends RecoverDecl implements Cloneable {
    public void flushCache() {
        super.flushCache();
    }
     @SuppressWarnings({"unchecked", "cast"})  public ExtendRecoverDecl clone() throws CloneNotSupportedException {
        ExtendRecoverDecl node = (ExtendRecoverDecl)super.clone();
        node.in$Circle(false);
        node.is$Final(false);
    return node;
    }
     @SuppressWarnings({"unchecked", "cast"})  public ExtendRecoverDecl copy() {
      try {
          ExtendRecoverDecl node = (ExtendRecoverDecl)clone();
          if(children != null) node.children = (ASTNode[])children.clone();
          return node;
      } catch (CloneNotSupportedException e) {
      }
      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");
      return null;
    }
     @SuppressWarnings({"unchecked", "cast"})  public ExtendRecoverDecl fullCopy() {
        ExtendRecoverDecl res = (ExtendRecoverDecl)copy();
        for(int i = 0; i < getNumChildNoTransform(); i++) {
          ASTNode node = getChildNoTransform(i);
          if(node != null) node = node.fullCopy();
          res.setChild(node, i);
        }
        return res;
    }
    // Declared in bridgit.ast at line 3
    // Declared in bridgit.ast line 43

    public ExtendRecoverDecl() {
        super();

        setChild(new List(), 1);

    }

    // Declared in bridgit.ast at line 11


    // Declared in bridgit.ast line 43
    public ExtendRecoverDecl(NodeUse p0, List<AltRecover> p1) {
        setChild(p0, 0);
        setChild(p1, 1);
    }

    // Declared in bridgit.ast at line 16


  protected int numChildren() {
    return 2;
  }

    // Declared in bridgit.ast at line 19

  public boolean mayHaveRewrite() { return false; }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 42
    public void setNodeUse(NodeUse node) {
        setChild(node, 0);
    }

    // Declared in bridgit.ast at line 5

    public NodeUse getNodeUse() {
        return (NodeUse)getChild(0);
    }

    // Declared in bridgit.ast at line 9


    public NodeUse getNodeUseNoTransform() {
        return (NodeUse)getChildNoTransform(0);
    }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 42
    public void setAltRecoverList(List<AltRecover> list) {
        setChild(list, 1);
    }

    // Declared in bridgit.ast at line 6


    private int getNumAltRecover = 0;

    // Declared in bridgit.ast at line 7

    public int getNumAltRecover() {
        return getAltRecoverList().getNumChild();
    }

    // Declared in bridgit.ast at line 11


     @SuppressWarnings({"unchecked", "cast"})  public AltRecover getAltRecover(int i) {
        return (AltRecover)getAltRecoverList().getChild(i);
    }

    // Declared in bridgit.ast at line 15


    public void addAltRecover(AltRecover node) {
        List<AltRecover> list = getAltRecoverList();
        list.addChild(node);
    }

    // Declared in bridgit.ast at line 20


    public void setAltRecover(AltRecover node, int i) {
        List<AltRecover> list = getAltRecoverList();
        list.setChild(node, i);
    }

    // Declared in bridgit.ast at line 24

    public List<AltRecover> getAltRecovers() {
        return getAltRecoverList();
    }

    // Declared in bridgit.ast at line 27

    public List<AltRecover> getAltRecoversNoTransform() {
        return getAltRecoverListNoTransform();
    }

    // Declared in bridgit.ast at line 31


     @SuppressWarnings({"unchecked", "cast"})  public List<AltRecover> getAltRecoverList() {
        return (List<AltRecover>)getChild(1);
    }

    // Declared in bridgit.ast at line 35


     @SuppressWarnings({"unchecked", "cast"})  public List<AltRecover> getAltRecoverListNoTransform() {
        return (List<AltRecover>)getChildNoTransform(1);
    }

public ASTNode rewriteTo() {
    return super.rewriteTo();
}

}
